import request from "./axios";

// // 个人信息查询
// export function getNickname(username) {
//   return request({
//     url: "/api/tnt/admin/settingSelect",
//     method: "get",
//     params: { username: username },
//   });
// }

// 修改昵称
export function updateNickname(data) {
  return request({
    url: "/api/tnt/admin/settingUpdate/nickname",
    method: "put",
    data,
  });
}

// 修改密码
export function updatePassword(data) {
  return request({
    url: "/api/tnt/admin/settingUpdate/password",
    method: "put",
    data,
  });
}

// 上传头像
export function upload(data) {
  return request({
    url: "/api/tnt/admin/uploadById",
    method: "Post",
    data,
  });
}
